import minappSdk from "minapp-sdk"

export default {
  install() {
    //知晓云初始化
    const BaaS = minappSdk
    const clientID = "017e9390966c9d56f5e1" // 应用Id
    BaaS.init(clientID)
    // BaaS.auth.register({ username: "admin", password: "admin123" })
    BaaS.auth.login({ username: "admin", password: "admin123" }).catch((err) => {
      console.log("知晓云SDK: init", err.message) //for debug
    })
  }
}
